package com.hzdp.service;

import java.util.List;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.hzdp.BaseTestCase;
import com.hzdp.entity.Patient;

public class PatientServiceTestCase extends BaseTestCase {

	@Autowired
	private PatientService patientService;

	@Test
	public void testSave() {
		Patient patient = new Patient();
		patient.setIDCard("13018519860432122222221");
		patient.setName("张三丰");
		patient.setProperties("sjflsdlkfslflsdjlfjsdofjoso");
		patient.setSex(1);
		patientService.save(patient);
	}

	@Test
	public void testFindAll() {
		List<Patient> patients = patientService.findAll();
		System.out.println(patients);
	}
}
